export class videoAdWatchCount{

    constructor(key){
        this.key = key;
        this.data = {
            count:0
        }
        let data = wx.getStorageSync(this.key)
        if(data){
            this.data = data
        }
    }

    incrCount(){
        this.data.count += 1;
        wx.setStorageSync(this.key,this.data)
    }

    getCount(){
        return this.data.count
    }
}